package com.baway.db.migrations

import androidx.room.DeleteColumn
import androidx.room.RenameColumn
import androidx.room.migration.AutoMigrationSpec
import androidx.sqlite.db.SupportSQLiteDatabase

/**
 * Author: Jason Zhang
 * Date: 2025/8/22
 * Desc: 删除字段
 */

@DeleteColumn(tableName = "user_info", columnName = "is_author")
class UserInfoColumnDeleteMigration: AutoMigrationSpec{

    override fun onPostMigrate(db: SupportSQLiteDatabase) {
        super.onPostMigrate(db)
        //使用SQLiteDatabase执行SQL语句

    }

}